<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>检测流程与常见问题 - 铁塔智能检测系统</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#4F46E5',
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .animate-on-scroll {
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.6s ease-out, transform 0.6s ease-out;
            }
            .animate-on-scroll.visible {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>
</head>
<body class="bg-gray-50 font-inter text-gray-800">
    <!-- 导航栏 -->


    <main class="container mx-auto px-4 pt-32 pb-24">
        <!-- 常见问题页面 -->
        <!-- 常见问题页面 -->
        <section class="bg-white rounded-2xl shadow-md p-6 md:p-8 mb-16">
            <h3 class="text-[clamp(1.5rem,4vw,2rem)] font-bold mb-8 text-center text-gray-800">检测流程与常见问题</h3>

            <!-- 检测流程部分 - 可折叠样式 -->
            <div class="mb-8">
                <div class="border-b border-gray-100 pb-4">
                    <button class="flex justify-between items-center w-full text-left font-medium" 
                            onclick="toggleFaq(this)">
                        <span>检测流程</span>
                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                    </button>
                    <div class="faq-content hidden mt-4">
                        <div class="space-y-4">
                            <!-- 步骤1 -->
                            <div class="border-b border-gray-100 pb-4">
                                <div class="flex items-start">
                                    <div class="text-primary font-semibold w-6 mr-3">1.</div>
                                    <div>
                                        <h5 class="font-medium mb-1">图像采集</h5>
                                        <p class="text-sm text-gray-600">
                                            使用无人机拍摄铁塔高清图像，确保图像清晰可见，覆盖关键部位</p>
                                    </div>
                                </div>
                            </div>

                            <!-- 步骤2 -->
                            <div class="border-b border-gray-100 pb-4">
                                <div class="flex items-start">
                                    <div class="text-primary font-semibold w-6 mr-3">2.</div>
                                    <div>
                                        <h5 class="font-medium mb-1">智能分析</h5>
                                        <p class="text-sm text-gray-600">
                                            上传图像至服务器，利用改进的YOLOv8模型进行实时分析，识别螺栓状态和腐蚀程度</p>
                                    </div>
                                </div>
                            </div>

                            <!-- 步骤3 -->
                            <div class="border-b border-gray-100 pb-4">
                                <div class="flex items-start">
                                    <div class="text-primary font-semibold w-6 mr-3">3.</div>
                                    <div>
                                        <h5 class="font-medium mb-1">结果判定</h5>
                                        <p class="text-sm text-gray-600">
                                            系统自动判定异常等级，生成详细报告，包括异常位置、类型和严重程度</p>
                                    </div>
                                </div>
                            </div>

                            <!-- 步骤4 -->
                            <div class="border-b border-gray-100 pb-4">
                                <div class="flex items-start">
                                    <div class="text-primary font-semibold w-6 mr-3">4.</div>
                                    <div>
                                        <h5 class="font-medium mb-1">预警处理</h5>
                                        <p class="text-sm text-gray-600">
                                            根据异常等级触发相应预警机制，提醒相关人员及时处理，保障铁塔安全</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 常见问题部分 -->
            <div class="space-y-4">
                <div class="border-b border-gray-100 pb-4">
                    <button class="flex justify-between items-center w-full text-left font-medium" 
                            onclick="toggleFaq(this)">
                        <span>系统可以检测哪些类型的铁塔异常？</span>
                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                    </button>
                    <div class="faq-content hidden mt-3 text-gray-600">
                        <p>
                            我们的系统主要检测铁塔的螺栓松动状态（正常、松动、脱落）和腐蚀程度（无腐蚀、轻度腐蚀、中度腐蚀、重度腐蚀）。</p>
                    </div>
                </div>

                <div class="border-b border-gray-100 pb-4">
                    <button class="flex justify-between items-center w-full text-left font-medium" 
                            onclick="toggleFaq(this)">
                        <span>为什么选择改进的YOLOv8算法？</span>
                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                    </button>
                    <div class="faq-content hidden mt-3 text-gray-600">
                        <p>
                            YOLOv8在处理小目标时，由于分辨率较低，特征信息不足，检测效果较差。我们通过对neck部分的网络架构进行改进，实现了频率增强的多尺度特征融合、频率聚焦下采样以及语义对齐和校准，从而提高了对铁塔螺栓和腐蚀状态识别的准确性。</p>
                    </div>
                </div>

                <div class="border-b border-gray-100 pb-4">
                    <button class="flex justify-between items-center w-full text-left font-medium" 
                            onclick="toggleFaq(this)">
                        <span>处理一张铁塔图像需要多长时间？</span>
                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                    </button>
                    <div class="faq-content hidden mt-3 text-gray-600">
                        <p>通常情况下，处理一张高清铁塔图像只需要几秒钟时间。处理时间主要取决于图像的分辨率和复杂度。</p>
                    </div>
                </div>

                <div class="border-b border-gray-100 pb-4">
                    <button class="flex justify-between items-center w-full text-left font-medium" 
                            onclick="toggleFaq(this)">
                        <span>检测结果如何存储和管理？</span>
                        <i class="fa fa-chevron-down text-gray-400 transition-transform"></i>
                    </button>
                    <div class="faq-content hidden mt-3 text-gray-600">
                        <p>
                            系统会将检测结果存储到数据库中，包括原始图像、检测结果、异常位置和严重程度等信息。用户可以随时查看历史检测记录和趋势分析。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- 联系我们部分 -->
        <section class="bg-white rounded-2xl shadow-md p-6 md:p-8">
            <h3 class="text-xl font-bold mb-6 text-center text-gray-800">如有其他问题，请联系我们</h3>
            <div class="flex flex-col md:flex-row justify-center items-center space-y-4 md:space-y-0 md:space-x-8">
                <div class="flex items-center">
                    <i class="fa fa-envelope text-primary text-xl mr-3"></i>
                    <span>2079884729@qq.com</span>
                </div>
                <div class="flex items-center">
                    <i class="fa fa-phone text-primary text-xl mr-3"></i>
                    <span>133-4936-6123</span>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-800 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div>
                    <div class="flex items-center mb-4">
                        <i class="fa fa-bolt text-primary text-2xl mr-2"></i>
                        <span class="text-lg font-bold">铁塔智能检测系统</span>
                    </div>
                    <p class="text-gray-400 text-sm">
                        基于深度学习技术的铁塔异常状态智能识别系统，为电力基础设施安全保驾护航。
                    </p>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">快速链接</h4>
                    <ul class="space-y-2 text-gray-400">
                        <li><a href="./intro.html" class="hover:text-primary transition-colors">首页</a></li>
                        <li><a href="./faq.html" class="hover:text-primary transition-colors">帮助与反馈</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">关注我们</h4>
                    <div class="flex space-x-4">
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-weixin"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-500 text-sm">
                <p>&copy; 2025 铁塔智能检测系统. 保留所有权利.</p>
            </div>
        </div>
    </footer>
    
    <script>
        // 确保DOM加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 移动端菜单控制
            const mobileMenu = document.getElementById('mobile-menu');
            const mobileMenuBtn = document.getElementById('mobile-menu-btn');
            const mobileMenuToggle = document.getElementById('mobile-menu-toggle');
            
            // 打开菜单按钮
            if (mobileMenuToggle && mobileMenu) {
                mobileMenuToggle.addEventListener('click', function() {
                    mobileMenu.classList.remove('hidden');
                });
            }
            
            // 关闭菜单按钮 - 修复关闭功能
            if (mobileMenuBtn && mobileMenu) {
                mobileMenuBtn.addEventListener('click', function() {
                    mobileMenu.classList.add('hidden');
                });
            }
            
            // 点击菜单项后关闭菜单
            if (mobileMenu) {
                const menuItems = mobileMenu.querySelectorAll('a');
                menuItems.forEach(item => {
                    item.addEventListener('click', function() {
                        mobileMenu.classList.add('hidden');
                    });
                });
            }

            // FAQ切换函数
            function toggleFaq(button) {
                const content = button.nextElementSibling;
                const icon = button.querySelector('i');
                
                // 切换内容显示
                content.classList.toggle('hidden');
                // 旋转图标
                icon.classList.toggle('transform');
                icon.classList.toggle('rotate-180');
            }

            // 滚动动画
            const animatedElements = document.querySelectorAll('.animate-on-scroll');
            
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('visible');
                        observer.unobserve(entry.target);
                    }
                });
            }, { threshold: 0.1 });
            
            animatedElements.forEach(element => {
                observer.observe(element);
            });
        });
    </script>
</body>
</html>